﻿package kee.games{	public class Game	{		public static const GAME_STATE_INIT:int = 1;		public static const GAME_STATE_MENU:int = 2;		public static const GAME_STATE_PLAY:int = 3;		public static const GAME_STATE_PAUSE:int = 4;		public static const GAME_STATE_STATUS:int = 5;		public static const GAME_STATE_GAMEOVER:int = 6;		private var _gameState:int;				private static var _instance:Game;		public function Game()		{			if(_instance)				throw(new Error("Error : Game is singleton."));							_instance = this;		}		public static function get gameState():int		{			return instance._gameState;		}				public static function set gameState(value:int):void		{			instance._gameState = value;		}		public static function get instance():Game		{			if(!_instance) new Game();			return _instance;		}	}}